*{
    padding: 0;
    margin: 0;
}
html{
    height: 100%;
    width: 100%;
    display: block;
}
body{
    height: 100%;
    width: 100%;
    display: flex;
    border: #aaaaaa;
    align-items: center;
    justify-content: center;
}
.all-container {
    height: 88vh;
    width: 100vw;
    min-height: 480px;
    display: flex;
    border: #aaaaaa;
    flex-flow: row;
    justify-content: center;
    align-items: center;
}
.left-container{
    height: inherit;
    width: 160px;
    min-width: 100px;
    max-width: 200px;
    border-radius: 4px;
    border: 0.5px solid #D0D0D0;
    background-color: #EEEEEE;
    display: flex;
    flex-flow: column;
}
.chat-list{
    overflow-y: scroll;
    flex: 1;
}
.chat-list .selected{
    background-color: #D0D0D0;
}
.chat-list::-webkit-scrollbar{
    display: none;
}
.chat, .newchat{
    border-bottom: 0.5px solid #cccccc;
    border-top: 0.5px solid #cccccc;;
    background-color: #EFEFEF;
    padding: 10px;
}
.newchat{
    color: #317d8a;
}
.newchat:hover{
    background-color: #E8E8E8;
}
.chat:hover{
    background-color: #E8E8E8;
}
.right-container{
    height: inherit;
    width: 760px;
    min-width: 220px;
    border-radius: 4px;
    border: 0.5px solid #cccccc;
    background-color: #f5f5f5;
    display: flex;
    flex-flow: column;
    overflow: hidden;
}
.content{
    position: relative;
    font-size: 15px;
    width: calc(100% - 40px);
    padding: 20px;
    overflow-y: scroll;
    flex: 1;
}
/* 设置滚动条的样式 */
.content::-webkit-scrollbar {
    width:10px;
}
/* 滚动槽 */
.content::-webkit-scrollbar-track {
    border-radius:8px;
}
/* 滚动条滑块 */
.content::-webkit-scrollbar-thumb {
    border-radius:10px;
    background:rgba(0,0,0,0);
}
/* 滚动条滑块移入显示 */
.content:hover::-webkit-scrollbar-thumb{
    background: rgba(0, 0, 0, 0.1);
}
.bubble{
    max-width: 400px;
    padding: 10px;
    border-radius: 5px;
    position: relative;
    color: #000;
    word-wrap:break-word;
    word-break:normal;
}
.item-left .bubble{
    margin-left: 15px;
    background-color: #fff;
}
.item-left .bubble:before{
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-top: 10px solid transparent;
    border-right: 10px solid #fff;
    border-bottom: 10px solid transparent;
    left: -20px;
}
.item-right .bubble{
    margin-right: 15px;
    background-color: #9eea6a;
}
.item-right .bubble:before{
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-left: 10px solid #9eea6a;
    border-top: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid transparent;
    right: -20px;
}
.item{
    margin-top: 15px;
    display: flex;
    width: 100%;
}
.item.item-right{
    justify-content: flex-end;
}
.item.item-center{
    justify-content: center;
}
.item.item-center span{
    font-size: 12px;
    padding: 2px 4px;
    color: #fff;
    background-color: #dadada;
    border-radius: 3px;
    -moz-user-select:none; /*火狐*/
    -webkit-user-select:none; /*webkit浏览器*/
    -ms-user-select:none; /*IE10*/
    -khtml-user-select:none; /*早期浏览器*/
    user-select:none;
}

.avatar img{
    width: 42px;
    height: 42px;
    border-radius: 50%;
}
.input-area{
    border-top:0.5px solid #e0e0e0;
    height: 150px;
    display: flex;
    flex-flow: column;
    background-color: #fff;
}
textarea{
    flex: 1;
    padding: 5px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    overflow-y: auto;
    overflow-x: hidden;
    outline:none;
    resize:none;
}
button{
    margin-left: 5px;
    margin-right: 5px;
    padding: 10px;
}
.button-area{
    display: flex;
    min-height: 40px;
    margin-right: 10px;
    line-height: 40px;
    padding: 5px;
    justify-content: flex-end;
}
.button-area button{
    max-width: 80px;
    border: none;
    outline: none;
    border-radius: 4px;
    float: right;
    cursor: pointer;
}
.button-area #chmod-btn, .button-area #edit-chat-btn {
    max-width: 120px;
}
.button-area button:hover{
    background-color: #e0e0e0;
}
.button-area button:active{
    background-color: #bdbdbd;
}
/* markdown列表样式 */
.markdown ol, .markdown ul {
    padding-left: 1.5em;
}
.markdown ol {
    list-style-type: decimal;
}
.markdown ul {
    list-style-type: disc;
}

/* markdown代码样式 包含行号 */
.markdown pre {
    padding: 0.5em;
    overflow: auto;
    background-color: #2b2b2b;
    border-radius: 4px;
}
.markdown pre code {
    background-color: #2b2b2b;
    padding: .1rem .1rem;
    color: #f8f8f2;
}
/* 代码复制按钮格式 */
.markdown pre .code-copy-btn {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    user-select: none;
    position: absolute;
    right: 12px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    color: hsla(0,0%,54.9%,.8);
    transition: color .1s;
}
/* 行内代码段样式 */
.markdown code {
    color: #c7254e;
    background-color: #f9f2f4;
    border-radius: 2px;
    padding: .25rem .25rem;
}
.markdown p:not(:last-child){
    padding-bottom: 20px;
}
.menu{
    position: absolute;
    top: 0;
    right: 0;
    padding: 0;
    display: none;
}
.menu button{
    width: 60px;
    height: 25px;
    padding: 2px;
    font-size: 6px;
    border: 1px solid #A0A0A0;
    border-radius: 4px;
    outline: none;
    background-color: #fff;
    cursor: pointer;
    display: none;
}
.head-area{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #fafafa;
    border-bottom: 0.5px solid #e0e0e0;
}
.head-left{
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.head-info{
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: flex-start;
}
.head-chat-name{
    font-size: 24px;
    font-family: “Arial”,”Microsoft YaHei”,”黑体”,”宋体”,sans-serif;
    font-weight: bold;
    margin-left: 10px;
}
.head-chat-info{
    font-size: 12px;
    color: #9e9e9e;
    margin-left: 10px;
}
.head-btns{
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.svg-icon {
    width: 2em;
    height: 2em;
}

.svg-icon:hover path,
.svg-icon:hover polygon,
.svg-icon:hover rect {
  fill: #6bab6b;
}

.svg-icon path,
.svg-icon polygon,
.svg-icon rect {
  fill: #3d3c3c;
}

.svg-icon circle {
  stroke: #3d3c3c;
  stroke-width: 1;
}
.toggle-btn{
    padding-left: 10px;
    padding-right: 10px;
}

#toggle-chats-btn {
    display: none;
}

@media (max-width: 768px) {
    .left-container {
        display: none;
    }

    #toggle-chats-btn {
        display: block;
    }

    .content{
        font-size: 14px;
    }
}
#settings-dialog {
    display: none;
    position: absolute;
    border-radius: 5px;
    background-color: #f1f1f1;
    padding: 20px;
    border: 2px solid #ccc;
    z-index: 2; /* Sit on top */
}
#chat-setting-dialog {
    display: none;
    position: absolute;
    border-radius: 5px;
    background-color: #f1f1f1;
    padding: 20px;
    border: 2px solid #ccc;
    z-index: 2; /* Sit on top */
}
.setting-menus{
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.setting-menu{
    min-width: 200px;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
}
.setting {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    margin-top: 10px;
    padding: 8px;
}
.setting input{
    max-width: 200px;
    height: 35px;
    font-size: 18px;
    text-align: center;
    border-radius: 6px;
    border: 1px solid #A0A0A0;
    outline: none;
}
.settings-close-btn{
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.setting-label{
    font-size: 18px;
    font-family: “Arial”,”Microsoft YaHei”,”黑体”,”宋体”,sans-serif;
    font-weight: bold;
    padding-right: 10px;
}
.setting-sub-label{
    font-size: 12px;
    color: #9e9e9e;
}
.label-svg-button{
    display: flex;
    justify-content: center;
    align-items: center;
}
.label-svg-button div{
    padding-left: 5px;
    padding-right: 5px;
}
